package com.title4;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @Author milian
 * @Date 2021/8/2 0002 16:57
 */
public class ClientDemo {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 10000);
        OutputStream outputStream = socket.getOutputStream();
        outputStream.write("Hello world".getBytes());
        socket.close();
    }
}
